<div id="gallery_<?php echo $this->galleryName; ?>">
<ul style="list-style:none;" class="img_gallery">
<?php if(!empty($this->images) && is_array($this->images)): ?>
    <?php $path = $this->siteUrl . $this->pathGallery . '/' . $this->galleryName . '/'; ?>
    <?php foreach ($this->images as $image): ?>
    <li id="gallery_image_<?php echo $image; ?>"><?php if(isset($this->settings[2]) && $this->settings[2] == 1): ?><a href="<?php echo $path . $image; ?>" title="<?php echo str_replace('-','&nbsp;',ToolsHelper::cropType($image)); ?>" rel="<?php echo $this->galleryName; ?>" class="thickbox"><?php endif; ?><img alt="<?php echo str_replace('-','&nbsp;',ToolsHelper::cropType($image)); ?>" width="<?php echo $this->settings[0]; ?>" <?php if(isset($this->settings[1]) && $this->settings[1] == 1): ?> height="<?php echo $this->settings[0]; ?>" <?php endif; ?> src="<?php echo $path . 'thumbnails/' . $image; ?>" /><?php if(isset($this->settings[2]) && $this->settings[2] == 1): ?></a><?php endif; ?>
    <?php if(isset($this->settings[3]) && $this->settings[3] == 1): ?><span><?php echo $image; ?></span><?php endif; ?><?php if($this->isLogin): ?> <a class="img_gallery_delete" href="javascript:;" onclick="deletePictureInGallery('<?php echo $this->galleryName; ?>', '<?php echo $image; ?>', '<?php echo $this->siteUrl; ?>');"><img src="<?php echo $this->siteUrl; ?>system/images/ico_delete.gif" style="width:20px;" alt="delete picture" title="delete this picture" /></a><?php endif; ?></li>
    <?php endforeach; ?>
<?php endif; ?>
</ul>
<?php if($this->isLogin): ?><div class="img_gallery_upload"><a href="javascript:;" onclick="tb_show('','<?php echo $this->siteUrl; ?>sys/backend_gallery/index/gallery/<?php echo $this->galleryName; ?>/?TB_iframe=true&height=210&width=460','');">UPLOAD PICTURES</a></div><?php endif; ?>
<p style="clear: both;"></p>
</div>